import Layout from '@/layout/index.vue'

const routes = [
  {
    path: '/',
    name: 'layout',
    component: Layout,
    redirect: '/search',
    children: [
      {
        path: '/search',
        name: 'search',
        component: () => import('@/views/search/index.vue'),
      },
      {
        path: '/menu',
        name: 'menu',
        component: () => import('@/views/menu/index.vue'),
      },
      {
        path: '/detail',
        name: 'detail',
        component: () => import('@/views/detail/index.vue'),
      }
    ],
  },
]
export default routes
